package com.bm.server.controller;


import com.bm.server.service.intf.UserInfoService;
import com.bm.server.vo.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

@RestController
@RequestMapping("/api/userinfo/")
@Api(tags = "查询用户信息界面-王文浩")
@CrossOrigin
public class UserInfoController {
    @Resource
    private UserInfoService service;
    @ApiOperation(value = "通过id查询用户信息")
    @GetMapping("/all.do")
    public R all(@RequestParam int uid){
        return service.selectById(uid);
    }
}
